package cn.iocoder.yudao.module.digital.controller.app.cardkeysecret;

import cn.iocoder.yudao.framework.common.pojo.CommonResult;
import cn.iocoder.yudao.module.digital.controller.app.cardkeysecret.vo.BambooNoticeOrderStatusReq;
import cn.iocoder.yudao.module.digital.framework.cardkey.config.CardKeyConfig;
import cn.iocoder.yudao.module.digital.service.cardchannel.ICardSecretManager;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.validation.Valid;

import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;

@Tag(name = "bamboo卡密密钥")
@RestController
@RequestMapping("/digital/bamboo-cardkey-secret")
@Validated
public class BambooCardkeySecretController {

    @Resource
    private ICardSecretManager cardSecretManager;
    @Resource
    private CardKeyConfig cardKeyConfig;

    @PostMapping("/notification-order-status")
    @Operation(summary = "通知订单状态")
    @PreAuthorize("@ss.hasPermission('digital:cardkey-secret:create')")
    public CommonResult claimCardKeySecret(@Valid @RequestBody BambooNoticeOrderStatusReq reqVo) {
        return success(null);
    }


}